package main

import "fmt"

func getAverage(arr [4]int) float32 {
	m := len(arr)
	var i int
	var sum float32
	for i = 0; i < m; i++ {
		sum += float32(arr[i])
	}

	return sum / float32(m)
}

func main()  {
	arr := [4] int {1, 2, 3, 4}

	fmt.Println(getAverage(arr))

}
